From 31e93ebbdd541a9b9bbb08089b663c1201a069d9 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 6 Mar 2009 19:10:29 +0000 Subject: [PATCH] tboot: Fix return code for S3 integrity The original patch left in a debug return value from one of the memory integrity checks. This patch returns the correct error code in case of a failure. This was re-tested to ensure that it still passes for the expected case. Signed-off-by: Joseph Cihula --- xen/arch/x86/tboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c index ed20e9951f..e259cd5da1 100644 --- a/xen/arch/x86/tboot.c +++ b/xen/arch/x86/tboot.c @@ -450,7 +450,7 @@ int tboot_s3_resume(void) tboot_gen_domain_integrity(g_tboot_shared->s3_key, &mac); if ( mac != domain_mac ) - return 0; /* -3 */ + return -3; return 0; } -- 2.30.2